package com.hiyee.pojo.bo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.hiyee.annotation.CheckUrl;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;

/**
 * 保存友情链接请求参数
 *
 * @author WangBin
 */
public class UpdateFriendLinkBO {
    private String id;

    @JsonProperty("link_name")
    @NotBlank(message = "友情链接名称不能为空")
    private String linkName;

    @JsonProperty("link_url")
    @NotBlank(message = "友情链接地址不能为空")
    @CheckUrl
    private String linkUrl;

    @JsonProperty("is_delete")
    @Null(message = "请选择保留或删除")
    private Integer isDelete;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
}
